package projetstackoverflow

class Tag {

	String value
	String desc
	
	static hasMany = [questions:Question]
	static belongsTo = [Question]
	
    static constraints = {
		desc(widget:'textarea')
		desc(blank:false)
		value(blank:false)
	}
    static mapping = {
		desc(type:'text')
	}
	
	def String toString() {
		return "Tag : "+value
	}
}
